Installation



{primary} Steps to generate API Key

⭕ Create an account or login into our Developer Site


image


⭕ Go to your Profile Page and click on Domains


image


⭕ Now Click on the Add Domain button on top right and enter your Domain Name


image


image


⭕ Add a plan to your domain to generate your API KEY


image


⭕ Copy your generated API KEY and save it for furthur use


JS

{info} Add the following cdn to use our javascript library in your application

<script src="https://cdn.mirrar.online/js/init.min.js"></script>

Example HTML

{info} Add this sample code to footer of your HTML to avail instant access of the SDK in your web application

<script>
  (function ($) {
    "use strict";
    $(document).ready(function () {
      var options = {
        "key": "API_KEY_HERE",
        "ExID": "Parent_Container_ID", // Optional
        "brandLogo": "Watermark_URL" // Optional
      }
      init(options);
      start();
    });
  })(jQuery);
</script>

Note:

📝 init(options) - to initialize the SDK and other dependancies

📝 start() - to show the UI and virtual tryon